const Component = {
  name: 'Permission',
  template: '<router-view></router-view>'
}
export default [
  {
    path: 'permission',
    component: Component,
    children: [
      {
        /* 权限列表管理
        -------------------------- */
        name: 'SettingPermissionAdminRule',
        path: 'admin-rule',
        meta: { name: '权限列表管理' },
        component: resolve => require(['./admin-rule'], resolve)
      },
      {
        /* 用户组管理
        -------------------------- */
        name: 'SettingPermissionAdminGroup',
        path: 'admin-group',
        meta: { name: '用户组管理' },
        component: resolve => require(['./admin-group'], resolve)
      },
      {
        /* 后台用户管理
        -------------------------- */
        name: 'SettingPermissionAdminList',
        path: 'admin-list',
        meta: { name: '后台用户管理' },
        component: resolve => require(['./admin-list'], resolve)
      },
      {
        /* 编辑菜单
        -------------------------- */
        name: 'SettingPermissionMenuCtrl',
        path: 'menu-ctrl',
        meta: { name: '编辑菜单' },
        component: resolve => require(['./menu-ctrl'], resolve)
      }
    ]
  }
]
